package com.wavehi.view_resolve.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author WaveHi
 * @Date 12/11/2021 下午 10:05
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Controller
public class CommonController {

    @RequestMapping("/hello")
    public String hello() {
        System.out.println("Hello!");
        return "hello";
    }

    @RequestMapping("/redirect")
    public String redirect() {
        System.out.println("Redirect");
        return "redirect:/hello";
    }


}
